<script>
APP = {
	base: '<?php echo site_url(array('graph',$usrAlias,'rewardPunishmentPerDepartemen'))?>',
	utils: '<?php echo site_url(array('utils')) ?>',
	periode1: null,
	periode2: null
}
</script>
<h2 style="border-bottom: 1px solid #ccc;">Laporan Grafik :: Reward Punishment Per Departemen</h2>
<form name="search" method="post">
<input type="hidden" name="proc" value="graph" />
<table width="100%" border="0" cellpadding="5">
<tr>
    <td width="100px" valign="top">Departemen : </td>
	<td>
		<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border:1px solid #3366CC;" bgcolor="#FFFFFF">
		<?php $rows=$depData->result_array()?>
		<?php $z=0?>
		<?php $rowCount=0;?>
		<?php while ($rows): ?>
		<tr <?php if ($z++%2==0):?> class="zebra" <?php endif;?>>
			<?php for($i=0; $i<3; $i++): ?>
			<?php if ($rowCount<count($rows)): $row = $rows[$rowCount++]?>
			<td>
			<input name="dep_id[]" type="checkbox" value="<?php echo $row['dep_id']?>" onChange="load_graph($(this).getParent('form'))"/>
			<span class="marginL5"><?php echo $row['dep_nama']?></span>
			</td>
			<?php else: ?><td></td><?php $rows=false?>
			<?php endif;?>
			<?php endfor;?>
		</tr>
		<?php endwhile; ?>
		</table>
	</td>
</tr>
<tr>
    <td>Periode : </td>
    <td><input type="text" id="periode1" name="periode1" value="<?php echo date("Y-m-d",time())?>" /> - 
    	<input id="periode2" name="periode2" type="text" value="<?php echo date("Y-m-d",time())?>" /></td>
</tr>
</table>
</form>
<div align="center" id="graphContainer" style="margin-top:20px">
<img id="graph" />
</div>
